Skip to content

feat: add niquests instrumentation#4459

Open
Ousret wants to merge 1 commit intoopen-telemetry:mainfrom
Ousret:instrumentation-niquests
Open

feat: add niquests instrumentation#4459
Ousret wants to merge 1 commit intoopen-telemetry:mainfrom
Ousret:instrumentation-niquests

Conversation

@Ousret
Copy link
Copy Markdown

@Ousret Ousret commented Apr 17, 2026

Description

Add OpenTelemetry instrumentation for the niquests (https://niquests.readthedocs.io/) HTTP client library. Niquests is a drop-in replacement for requests with native async support, HTTP/2, HTTP/3, and richer connection metadata. This instrumentation covers both the synchronous Session and the asynchronous AsyncSession interfaces.

Fixes # (issue)

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

I heavily inspired myself on other http client instrumentation to build up confidence that this one works too.

Does This PR Require a Core Repo Change?

  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@Ousret Ousret requested a review from a team as a code owner April 17, 2026 03:28
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Apr 17, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: Ousret / name: Ahmed TAHRI (aaf5e70)

@herin049
Copy link
Copy Markdown
Contributor

Hi @Ousret, generally speaking we prefer that library implementors consider adding first-class support for OTel over creating a dedicated instrumentation library. Have you reached out to the library authors to see if they would consider adding OTel instrumentation directly to niquests?

@Ousret
Copy link
Copy Markdown
Author

Ousret commented Apr 17, 2026

I am the maintainer of Niquests. And I am willing to keep an eye into that contribution for the long run.
I really prefer that this contrib is hosted here as the other http client out there (aiohttp, requests, httpx, ..)

regards,

@Ousret Ousret force-pushed the instrumentation-niquests branch from 19f9e88 to d7b80b8 Compare April 22, 2026 10:41
@Ousret Ousret force-pushed the instrumentation-niquests branch from d7b80b8 to aaf5e70 Compare April 22, 2026 10:53
@Ousret
Copy link
Copy Markdown
Author

Ousret commented Apr 22, 2026

I fixed the CI errors (misc).

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Add Opentelemetry Instrumentation

2 participants